﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SD007
{
    public class VariableAbstraction
    {
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private string typeName;

        public string TypeName
        {
            get { return typeName; }
            set { typeName = value; }
        }

        private string nameSpace;

        public string NameSpace
        {
            get { return nameSpace; }
            set { nameSpace = value; }
        }

        public VariableAbstraction(string name, string typeName)
        {
            this.Name = name;
            this.TypeName = typeName;
        }

        private string ownerType;

        public string OwnerType
        {
            get { return ownerType; }
            set { ownerType = value; }
        }

        public override bool Equals(object obj)
        {
            VariableAbstraction comparedInstance = (VariableAbstraction)obj;
            return (comparedInstance.Name == this.Name);
        }
    }
}
